package com.test.proxy.statistic;

/**
 * @Author: junwe
 * @Date: 2020/12/14 21:12
 */
public class Client {
    public static void main(String[] args) {
        // 创建目标对象
        TeacherDao teacherDao = new TeacherDao();
        // 创建代理对象，将目标对象传递给代理对象
        TeacherDaoProxy proxy = new TeacherDaoProxy(teacherDao);
        // 通过代理对象调用
        proxy.teach();
    }
}
